﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace ZWZ.Web.Codes.UC.ControlAttr
{
    [AttributeUsage(AttributeTargets.Property)]
    public class ControlPropertyAttribute : Attribute
    {
        /// <summary>
        /// 属性值类型
        /// </summary>
        public enum_AttrType AttributeType;

        /// <summary>
        /// 属性分组
        /// </summary>
        public enum_AttrGroup AttributeGroup;

        /// <summary>
        /// 属性名称
        /// </summary>
        public string Name;

        /// <summary>
        /// 设置属性值
        /// </summary>
        /// <param name="atype">数值类型</param>
        /// <param name="agroup">分组</param>
        /// <param name="Name">名称</param>
        public ControlPropertyAttribute(enum_AttrType atype,enum_AttrGroup agroup,string Name)
        {
            this.AttributeType = atype;
            this.AttributeGroup = agroup;
        }
    }
}
